import request from '@/utils/request'

export function addTeacher(params) {
  return request({
    url: 'teacher/add',
    method: 'post',
    data: params
  })
}

export function getTeacherList(params) {
  return request({
    url: 'teacher/list',
    method: 'get',
    params
  })
}

export function getTeacherListOptions() {
  return request({
    url: 'teacher/listOptions',
    method: 'get'
  })
}

export function getTeacherSchedules(params) {
  return request({
    url: 'teacher/schedules',
    method: 'get',
    params
  })
}

export function getTeacherInfoByClass(params) {
  return request({
    url: 'teacher/infoByClass',
    method: 'get',
    params
  })
}
